/**
  ******************************************************************************
  * @file    gpio.h
  * @brief   This file contains all the function prototypes for
  *          the gpio.c file
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2022 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under Ultimate Liberty license
  * SLA0044, the "License"; You may not use this file except in compliance with
  * the License. You may obtain a copy of the License at:
  *                             www.st.com/SLA0044
  *
  ******************************************************************************
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __GPIO_H__
#define __GPIO_H__

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "main.h"

/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* USER CODE BEGIN Private defines */
#define SYS_LED_TOGGLE() do{HAL_GPIO_TogglePin(SYS_LED_GPIO_Port,SYS_LED_Pin);}while(0)
#define RM2006_EN_PWR_ON() do{HAL_GPIO_WritePin(RM2006_EN_GPIO_Port,RM2006_EN_Pin,GPIO_PIN_SET);}while(0)
#define RM2006_EN_PWR_OFF() do{HAL_GPIO_WritePin(RM2006_EN_GPIO_Port,RM2006_EN_Pin,GPIO_PIN_RESET);}while(0)
#define DCMOTOR_EN_PWR_ON() do{HAL_GPIO_WritePin(DCMOTOR_EN_GPIO_Port,DCMOTOR_EN_Pin,GPIO_PIN_SET);}while(0)
#define DCMOTOR_EN_PWR_OFF() do{HAL_GPIO_WritePin(DCMOTOR_EN_GPIO_Port,DCMOTOR_EN_Pin,GPIO_PIN_RESET);}while(0)
#define DCMOTOR_DIR_HIGH() do{HAL_GPIO_WritePin(DCMOTOR_DIR_GPIO_Port,DCMOTOR_DIR_Pin,GPIO_PIN_SET);}while(0)
#define DCMOTOR_DIR_LOW() do{HAL_GPIO_WritePin(DCMOTOR_DIR_GPIO_Port,DCMOTOR_DIR_Pin,GPIO_PIN_RESET);}while(0)
#define BEEP_ON() do{HAL_GPIO_WritePin(BEEP_GPIO_Port,BEEP_Pin,GPIO_PIN_SET);}while(0)
#define BEEP_OFF() do{HAL_GPIO_WritePin(BEEP_GPIO_Port,BEEP_Pin,GPIO_PIN_RESET);}while(0)
#define BEEP_TOGGLE() do{HAL_GPIO_TogglePin(BEEP_GPIO_Port,BEEP_Pin);}while(0)
#define MD0_HIGH() do{HAL_GPIO_WritePin(MD0_GPIO_Port,MD0_Pin,GPIO_PIN_SET);}while(0)
#define MD0_LOW() do{HAL_GPIO_WritePin(MD0_GPIO_Port,MD0_Pin,GPIO_PIN_RESET);}while(0)
#define MD1_HIGH() do{HAL_GPIO_WritePin(MD1_GPIO_Port,MD1_Pin,GPIO_PIN_SET);}while(0)
#define MD1_LOW() do{HAL_GPIO_WritePin(MD1_GPIO_Port,MD1_Pin,GPIO_PIN_RESET);}while(0)
/* USER CODE END Private defines */

void MX_GPIO_Init(void);

/* USER CODE BEGIN Prototypes */

/* USER CODE END Prototypes */

#ifdef __cplusplus
}
#endif
#endif /*__ GPIO_H__ */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
